#include "dateset.h"
#include "ui_dateset.h"
#include <QDebug>
QDateTime FORMDATE;

//QDialog(parent,Qt::FramelessWindowHint),//把去掉标题栏放在这里
dateSet::dateSet(QWidget *parent) :
    QDialog(parent,Qt::FramelessWindowHint),
    ui(new Ui::dateSet)
{
    ui->setupUi(this);

}

dateSet::~dateSet()
{
    delete ui;
}

void dateSet::on_pushButton_ok_clicked()
{
   FORMDATE=ui->dateTimeEdit->dateTime();
   qDebug()<<"****"<<FORMDATE;
   this->close();
}

void dateSet::on_pushButton_quit_clicked()
{
    this->close();
}

void dateSet::setRedate(QDateTime datestr)
{
      ui->dateTimeEdit->setDateTime(datestr);
}
